package com.baosight.risk.base.service;

import com.baosight.risk.base.entity.BaseEntity;
import com.baosight.risk.base.mapper.BaseMapper;

import java.util.List;

/**
 * @param <T> 对象
 * @author duanyongqiang
 * <p>
 * 基础service
 */
public interface BaseService<T extends BaseEntity> {

    BaseMapper getMapper();

    List<T> select(T t);

    T get(String id);

    List<T> selectAll();

    Integer insert(T t);

    Integer update(T t);

    Integer delete(String id);

}
